package iagovsothello.online.server;

import java.io.Serializable;

public class Game implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 326598855854533599L;
	private int color;
	private int difficulty;
	private int humanPoints;
	private int aiPoints;
	private String code;
	private boolean valid;
	
	public Game(String code)
	{
		this.code = code;
		this.valid = false;
	}
	
	public boolean isHumanVictorious()
	{
		return (humanPoints > aiPoints);
	}
	
	public boolean draw()
	{
		return (humanPoints == aiPoints);
	}
	
	public int getColor() 
	{
		return color;
	}
	public void setColor(int color) 
	{
		this.color = color;
	}
	public int getDifficulty() 
	{
		return difficulty;
	}
	public void setDifficulty(int difficulty) 
	{
		this.difficulty = difficulty;
	}
	public int getHumanPoints() 
	{
		return humanPoints;
	}
	public void setHumanPoints(int humanPoints) 
	{
		this.humanPoints = humanPoints;
	}
	public int getAiPoints() 
	{
		return aiPoints;
	}
	public void setAiPoints(int aiPoints) 
	{
		this.aiPoints = aiPoints;
	}

	public String getCode() 
	{
		return code;
	}

	public void setCode(String code)
	{
		this.code = code;
	}

	public boolean isValid() 
	{
		return valid;
	}

	public void setValid(boolean valid)
	{
		this.valid = valid;
	}
	
	
}
